package com.google.gmeetings

class Meeting {
    String topic
    User owner
    Location location
    Date startDate
    Date endDate

    static hasMany = [participants: User, userStatus: JoinStatus]

    static constraints = {
        owner()
        location()
        startDate()
        endDate()
        participants()
    }
    
    static mapping = {
        participants(lazy: false)
        userStatus(lazy: false)
    }
    
}
